package mspbots.qbd.data.desktop.customers;

import org.springframework.data.r2dbc.repository.R2dbcRepository;
import reactor.core.publisher.Mono;

/**
 * mspbots.data.sync.quickbooks.desktop.account.OnlineAccountRepository
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2020/5/29
 */
public interface CustomersRepository extends R2dbcRepository<Customers, Long> {

    /**
     * find entity other id and tenant id
     *
     * @param otherId  other Id
     * @param tenantId tenant id
     * @return account enrity
     */
    Mono<Customers> findByOtherIdAndTenantId(String otherId, Long tenantId);
}
